package Themes;

import javax.swing.*;
import GUI.*;
import java.awt.*;
import java.awt.image.*;
import java.net.*;
import java.applet.*;



public class Theme {
	static String currentTheme;
	private String imageExtension;
	private static Theme instance = new Theme(Options.getCurrentTheme());
	public static Theme getInstance() {
		return instance;
	}
	protected Theme(String theme) {
		currentTheme = theme;
		imageExtension = ".png";
	}
	
	public ImageIcon getImage(String name) {
		//try {
			return new ImageIcon(getClass().getResource(currentTheme + "/" + name + imageExtension));
		//} catch (Exception e) {
			//Theme error
		//}
	}
}